import java.util.Scanner;

public class text_for {
    public static void main(String[] args) {
/*
    for (int i = 0;i<5;i++){
            System.out.println("HelloWolrd");
        }

        for (int i = 1;i<=5;i++){
            System.out.println(i);
        }

        for (int i = 5;i>=1;i--){
            System.out.println(i);
        }

        for (int i = 5;i>=1;i--){
            System.out.println(i + "秒后断线重连");
        }

       求和的变量不能定义在循环的里面，因为只在所属的大括号内有效
        int num = 0;
        for (int i = 1;i<=100;i++){
            num += i;
        }
        System.out.println(num);

        求1-100之间的偶数和

        int sum = 0;
        for (int i = 1; i <= 100; i++){
            if (i % 2 == 0){
                sum += i;

            }
        }
        System.out.println(sum);

        输入两个整数，统计这个范围，在这个范围中能被3整除又能被5整除

        System.out.println("请输入一个整数表示开始");
        Scanner a = new Scanner(System.in);
        int aa = a.nextInt();

        System.out.println("请输入一个整数表示结束");
        Scanner b = new Scanner(System.in);
        int bb = b.nextInt();

        int conut = 0;

        for (int  i= aa; i <= bb;i++){
            if (i % 3 == 0 && i % 5 == 0){
                System.out.println(i);
                conut++;                                                                                                                                                                                       
            }
        }
        System.out.println(conut);
*/


































    }
}



